
package cn.rojao.wx.config;

import org.apache.commons.lang3.StringUtils;

/**
 * 全局配置常量
 * 
 * @author fengjx xd-fjx@qq.com
 * @version AppConfig.java 2014年9月16日
 */

public final class AppConfig {
	   /**
     * 是/否
     */
    public static final String YES = "1";

    public static final String NO = "0";
    
    /**
     * 对/错
     */
    public static final String TRUE = "true";
    public static final String FALSE = "false";
	
	public static final String REQUEST_FLAG_AJAX = "ajax";
	
	public static final String STATIC_FILE = ".css,.js,.png,.jpg,.gif,.jpeg,.bmp,.ico,.swf,.psd,.htc,.htm,.html,.crx,.xpi,.exe,.ipa,.apk";
	
	public static final String TEST_FALG = "1";
	
	public static final String prefix="/WEB-INF/view/";
	
	public static final String suffix=".jsp";
	
	public static final String multiAccountLogin="true";
	

	public static final String SYS_CACHE = "sysCache";

	public static final String YS_CACHE = "sysCache";
	
	
	public static final String algorithm = "md5";
//	algorithm.name=md5
	public static final String terations  = "2";

	
	/**
     * 获得静态文件后缀名数组
     *
     * @return
     */
    public static String[] getStaticFiles() {
        return StringUtils.split(STATIC_FILE, ",");
    }
    
    /**
     * @return true:测试环境
     */
    public static boolean isTest() {
        return YES.equals(AppConfig.TEST_FALG);
    }
	
	
	
    


}
